package com.paradogs.framework.core.netty.server;

import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author: yumi
 * @date: 2023/11/6  0:02
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PRConnection {

    /**
     * player、gate、master、login、...
     */
    private String type;

    private Channel channel;

    private ServerProperties properties;

    public PRConnection(Channel channel, ServerProperties properties) {
        this.channel = channel;
        this.type = properties.getType();
        this.properties = properties;
    }

    public boolean isInit() {
        return properties != null;
    }

}
